package com.inibb.app.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OrderBy;
import javax.persistence.Table;

@Entity
@Table(name = "PIC")
public class Pic implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	private Integer picId;
	private String name;
	private String desp;
	private String type;
	private String url;

	@Id
	@Column(name = "PIC_ID", unique = true, nullable = false)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@OrderBy("ASC")
	public Integer getPicId() {
		return picId;
	}

	public void setPicId(Integer id) {
		this.picId = id;
	}
	
	@Column( name="NAME", length=POConstants.NAME_FIELD_LENGTH )
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Column( name="DESP", length=POConstants.LONG_TEXT_FIELD_LENGTH )
	public String getDesp() {
		return desp;
	}
	public void setDesp(String desp) {
		this.desp = desp;
	}
	@Column( name="PIC_TYPE", length=POConstants.CODE_FIELD_LENGTH )
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	@Column( name="URL", length=POConstants.LONG_STR_FIELD_LENGTH )
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
}
